package com.itheima.controller;


import com.itheima.domain.Student;
import com.itheima.service.StuSevcie;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
public class StuController {


    @Autowired
    private StuSevcie stuSevcie;


    @RequestMapping("/findstu")
    public List<Student> findStu(){

        return stuSevcie.findStu();
    }
}
